package com.cgycms.webdeploy.aop;

import com.cgycms.webdeploy.auth.MenuEnum;
import com.cgycms.webdeploy.auth.RolesEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @ClassName : Auth
 * @Description : 权限验证
 * @Author : Wlc
 * @Date: 2020-11-05 12:02
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface  Auth {

    String value() default "";

    RolesEnum[] roles() default RolesEnum.NO;

    MenuEnum[] menus() default MenuEnum.NO;

    boolean ok() default true;

}
